/*
 * @Date: 2022-03-11 09:31:49
 * @LastEditors: 春贰
 * @gitee: https://gitee.com/chun22222222
 * @github: https://github.com/chun222
 * @Desc:
 * @LastEditTime: 2022-03-22 10:01:58
 * @FilePath: \server\system\model\RequestModel\auto_code.go
 */
package RequestModel

type Tabledata struct {
	Comment   string `json:"comment"  binding:"required"`
	InputType string `json:"inputtype"  binding:"required"`
	List      bool
	Fieldname string `json:"fieldname"  binding:"required"`
	Notnull   bool
	Search    bool
	Type      string
	Len       int64
}

type CodeCreate struct {
	Ename     string
	Parent    int
	TableName string      `json:"table_name"  binding:"required"`
	Tabledata []Tabledata `json:"tabledata"  binding:"required"`
}

type CodeRemove struct {
	TableName string `json:"table_name"  binding:"required"`
}
